<template>
  <div class="first-page">
    <div class="main-content">
      <!-- 上部分 -->
      <div class="mct-container">
        <!-- 左部分 -->
        <div class="mctc-left">
          <Left-Chart />
        </div>
        <!-- 右部分 -->
        <div class="mctc-right">
          <Right-Chart />
        </div>
      </div>
      <!-- 下部分 -->
      <div class="mcb-container">
        <!-- <dv-border-box-12> -->
        <!-- <dv-border-box-12 class="mcb-container"> -->
          <Cards />
        <!-- </dv-border-box-12> -->
        <!-- </dv-border-box-12> -->
      </div>
    </div>
  </div>
</template>

<script>
import LeftChart from "./LeftChart";
import RightChart from "./RightChart";
import Cards from "./Cards";

export default {
  name: "FirstPage",
  components: {
    LeftChart,
    RightChart,
    Cards
  },
  data() {
    return {
      route: "index"
    }
  },
  mounted() {
    if (location.hash) this.route = location.hash; 
    console.log('FirstPage1');
  }
}
</script>

<style lang="less">
.first-page {
  width: 100%;
  height: calc(~"100% - 80px");
  color: #fff;

  .main-content {
    height: 100%;

    .border-box-content {
      padding: 20px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
    }
  }
  .mct-container {
    height: 60%;
    display: flex;
    flex: 1;
    // padding-bottom: 20px;
    // box-sizing: border-box;
  }

  .mctc-left,
  .mctc-right {
    width: 50%;
  }

  .mcb-container {
    height: 40%;
    display: flex;
    .border-box-content{
      padding: 4px;
    }
  }
}
</style>